package model;

import java.util.Date;

/*
 create table news(
num integer auto_increment primary key,
title varchar(50) not null,
content varchar(1000),
img varchar(100),
day date
)
 */

public class News {

	public News(int num, String title, String content, String img, Date day) {
		super();
		this.num = num;
		this.title = title;
		this.content = content;
		this.img = img;
		this.day = day;
	}
	private int num;
	private String title,content,img;
	private Date day;
	@Override
	public String toString() {
		return "News [num=" + num + ", title=" + title + ", content=" + content
				+ ", img=" + img + ", day=" + day + "]";
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	public Date getDay() {
		return day;
	}
	public void setDay(Date day) {
		this.day = day;
	}
}
